#!/bin/bash

for host in hadoop102 hadoop103 hadoop104
do
        echo -e "[ \033[36m$(date "+%Y-%m-%d %H:%M:%S")\033[0m]		\033[32mINFO\033[0m $host"
        ssh $host jps 
done

